﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Galnote.Class
{
	[System.Windows.Markup.ContentProperty("ThumbContent")]
	public class ThumbTemplatedSlider : Slider
	{
		public ThumbTemplatedSlider()
		{
			this.DefaultStyleKey = typeof(ThumbTemplatedSlider);
		}

		public static readonly DependencyProperty ThumbContentProperty = DependencyProperty.Register(
			"ThumbContent",
			typeof(object),
			typeof(ThumbTemplatedSlider),
			new PropertyMetadata(null));


		public object ThumbContent
		{
			get
			{
				return GetValue(ThumbContentProperty);
			}
			set
			{
				SetValue(ThumbContentProperty, value);
			}
		}

		public static readonly DependencyProperty ThumbTemplateProperty = DependencyProperty.Register(
			"ThumbTemplate",
			typeof(DataTemplate),
			typeof(ThumbTemplatedSlider),
			new PropertyMetadata(null));

		public DataTemplate ThumbTemplate
		{
			get
			{
				return GetValue(ThumbTemplateProperty) as DataTemplate;
			}
			set
			{
				SetValue(ThumbTemplateProperty, value);
			}
		}
	}
}
